home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gMachineType, gDebugMode, gEjectSct
- if the machineType <> 256 then
- set gMachineType to "MAC"
- else
- set gMachineType to "PC"
- end if
- if gMachineType = "MAC" then
- set the colorDepth to 8
- if the colorDepth <> 8 then
- alert("can't set colorDepth.")
- end if
- else
- openXLib(the pathName & "FILEIO.DLL")
- end if
- set theObj to fileio(mnew, "read", the pathName & "DEBUG.FLG")
- if objectp(theObj) then
- set gDebugMode to 1
- theObj(mdispose)
- else
- set gDebugMode to 0
- end if
- if gMachineType = "MAC" then
- set theChObj to fileio(mnew, "read", the pathName & "EJECT_P")
- if not objectp(theChObj) then
- alert("Sorry! not found Eject paper CMD file." & RETURN & "file : EJECT_P")
- set gEjectSct to EMPTY
- else
- set gEjectSct to theChObj(mreadfile)
- theChObj(mdispose)
- end if
- end if
- go(1, "START")
- end
-